﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Windows.Forms;
using HotelSoft.HotelManagement_BUS;

namespace HotelSoft.HotelManagement_GUI
{
    public partial class frmReport_KhachHang : Form
    {
        KhachHangBUS buskhachhang = new KhachHangBUS();
        public frmReport_KhachHang()
        {
            InitializeComponent();
        }

        private void ViewKhachhang_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            docKhachHang = new rptReport_KhachHang();
            string s = Application.StartupPath + "\\rptReport_KhachHang.rpt";
            docKhachHang.Load(s);

            dt = buskhachhang.SellectAll();
            docKhachHang.Database.Tables["command"].SetDataSource(dt);
            ViewKhachhang.ReportSource = docKhachHang;
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmReport_KhachHang_Load(object sender, EventArgs e)
        {
            CultureInfo culture = (CultureInfo)CultureInfo.CurrentCulture.Clone();
            culture.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy";
            Thread.CurrentThread.CurrentCulture = culture;
        }


    }
}
